package com.jiaozi.system.entity;

import java.util.Date;

import com.jiaozi.base.enums.sys.StateEnum;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.*;

/**
 * 系统-部门(SysDepartment)表实体类
 *
 * @author jiaozi
 * @since 2024-08-15 14:02:36
 */
@Data
@TableName("sys_department")
public class SysDepartment {
    //主键    
    @TableId
    private Long id;
    //上级id    
    private Long pId;
    //部门名称    
    private String departmentName;
    //顺序0~99    
    private Long departmentSort;
    //状态    
    private StateEnum departmentState;
    //删除标志（0代表存在 1代表删除）
    @TableLogic
    private Integer deleted;
    //创建者
    @TableField(fill = FieldFill.INSERT)
    private String createdBy;
    //创建时间
    private Date createdTime;
    //更新者
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;
    //更新时间    
    private Date updatedTime;
    //乐观锁版本号    
    private Integer version;
}

